<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags" %>
<%@ taglib prefix="c" uri="/WEB-INF/c.tld" %>
<!DOCTYPE HTML>
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
<link href="admin/css/style.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="admin/js/jquery.js"></script>

<script>
	$(function() {
		//导航切换
		$(".menuson li").click(function() {
			$(".menuson li.active").removeClass("active")
			$(this).addClass("active");
		});

		$('.title').click(function() {
			var $ul = $(this).next('ul');
			$('dd').find('ul').slideUp();
			if ($ul.is(':visible')) {
				$(this).next('ul').slideUp();
			} else {
				$(this).next('ul').slideDown();
			}
		});
	})
</script>


</head>

<body style="background: #f0f9fd;">
	<div class="lefttop">
		<span></span>菜单
	</div>

	<dl class="leftmenu">
		<c:forEach var="role" items="${user.roleSet}">
			<c:forEach var="permission" items="${role.permissionSet}">
				<dd>
					<c:if test="${permission.parent_id == null }">
						<div class="title">
							<span><img src="admin/images/leftico01.png" /></span>${permission.per_name }
						</div>
						<ul class="menuson">
							<c:forEach var="per" items="${permission.perSet }">
								<li><cite></cite><a href="${per.per_url }" target="rightFrame">${per.per_name }</a><i></i></li>
							</c:forEach>
						</ul>
					</c:if>
				</dd>
			</c:forEach>
		</c:forEach>
	</dl>

</body>
</html>
